package com.crr.apis;

import com.crr.entities.PayDTO;
import com.crr.ret.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "nacos-pay-provider",fallback = PayFeignSentinelApiFallBack.class)
public interface PayFeignSentinelAPi {
    @GetMapping("/pay/nacos/get/{orderNo}")
    public ResultData<PayDTO> getPayByOrderNo(@PathVariable("orderNo") String orderNo);
}
